home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / picsearch.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-07-23  |  1.9 KB  |  71 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef PICSEARCH_H
  8. #define PICSEARCH_H
  9.  
  10. #include <QDialog>
  11. #include <QListWidgetItem>
  12. #include <QCheckBox>
  13. #include <QLabel>
  14. #include <QPushButton>
  15. #include <QLayout>
  16. #include <QToolTip>
  17. #include <QStringList>
  18.  
  19. #include "scribusapi.h"
  20. #include "ui_picsearch.h"
  21.  
  22.  
  23. /*! \brief Dialog for selecting one of all images founded.
  24. It's called after image search Extras/Manage Pictures/ Click [Search] button for chosen
  25. image frame item. */
  26. class SCRIBUS_API PicSearch : public QDialog, Ui::PicSearch
  27.     Q_OBJECT
  28.  
  29. public:
  30.     /*!
  31.     \author Franz Schmid
  32.     \brief Constructor for PicSearch.[dox?]. Used in Extras / Manage Pictures / Search function
  33.     \param parent QWidget pointer to parent window
  34.     \param fileName QString name of image
  35.     \param avalableFiles QStringList List of Paths where an Image with the given Name is present
  36.     */
  37.     PicSearch( QWidget* parent, const QString & fileName, const QStringList & avalableFiles);
  38.     ~PicSearch() {};
  39.  
  40.     //! \brief Currently selected image with its full path
  41.     QString currentImage;
  42.  
  43. private slots:
  44.     /*!
  45.     \author Franz Schmid
  46.     \brief If preview is desired (checked) then the image preview is shown and generated, otherwise hidden.
  47.     */
  48.     void previewCheckBox_clicked();
  49.     /*!
  50.     \author Franz Schmid
  51.     \brief When image is selected from the ListBox then the image preview may be shown and the Use button is enabled.
  52.     \param c QListBoxItem
  53.     */
  54.     void foundFilesBox_clicked(QListWidgetItem *c);
  55.     /*!
  56.     \author Franz Schmid
  57.     \brief Generates image preview for the found Picture
  58.     */
  59.     void createPreview();
  60.  
  61. signals:
  62.     //! \brief Emitted when the pic for a row is replaced. Arg is row index.
  63.     void rowPicChanged(unsigned int);
  64.  
  65. protected:
  66.     QSize minS;
  67. };
  68.  
  69. #endif // PICSEARCH_H
  70.